<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html lang=en>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>MANTENIMIENTO DE COMPROBANTES</title>
<link rel=”stylesheet” href=”css/bootstrap.css”  type=”text/css”/>
<link href="css/bootstrap-responsive.css" rel="stylesheet">
</head>
<body>
<div class="row">
<div class="span8">
<h1><a href="”#”">BUSQUEDA COMPROBANTE</a></h1>
</div>
</div>
<form id="form1" name="form1" method="post" action="ComprobanteGenerarServlet">
<div class="row">
  <div class="navbar-inner">
      <div class="container">
         <table class="table-condensed" border="1">
         <tr>
          <th> INGRESA ID COMPROBANTE : </th>
          <th> 
          <input type="text" name="txtidcomprobante" id="txtidcomprobante" placeholder="Ingrese Comprobante..."/>
          </th>
          <th> 
          <button type="submit" class="btn"> BUSCAR </button> 
          </th>
          <th> 
          <input type="button" value="Regresar" onclick="window.location='IndexComprobante.jsp'" class="btn" /> 
          </th> 
          </tr>
         </table>
      </div>
  </div>
</div>
</form>

</form>

<table class="table-condensed" border="1">
  <tr>
    <th width="49" scope="col">Item</th>
    <th width="49" scope="col">Fecha Compra</th>
    <th width="49" scope="col">Total Compra</th>
    <th width="49" scope="col">N Boleta</th>
    <th width="192" scope="col">N Comprobante</th>
    <th width="107" scope="col">DNI Cliente</th>
    <th width="192" scope="col">Cliente</th>
  </tr>

<%@page import="java.util.*, java.util.ArrayList" %>
<%

ArrayList generoboleta = (ArrayList)request.getAttribute("documento");
if(generoboleta != null) { 
int i = 1;
%>  
  <tr>
    <td><%=i++ %></td>
    <td><% out.print(generoboleta.get(0)); %></td>
    <td><% out.print(generoboleta.get(1)); %></td>
    <td><% out.print(generoboleta.get(2)); %></td>
    <td><% out.print(generoboleta.get(3)); %></td>
    <td><% out.print(generoboleta.get(4)); %></td>
    <td><% out.print(generoboleta.get(5)); %></td>
  </tr>    
<%   
  } %>
  
</table>

<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src=”js/bootstrap.js”></script>
</body>
</html>